package rs.mbs2.epics.server.session.dao.localinterface;

import java.util.List;

import rs.mbs2.epics.server.entity.Photo;
import rs.mbs2.epics.server.entity.Tag;

public interface PhotoDaoLocal extends GenericDaoLocal<Photo, Integer> {

	public List<Photo> getNPhotos(Integer n);

	public List<Photo> findPhotosByAlbumId(Integer albumId);
	
	public List<Photo> findPhotosByTitle(String title);
	
	public List<Photo> findPhotosByDescription(String description);
	
	public List<Photo> findPhotosByNameAndLastname(String firstname, String lastname);
	
	public List<Photo> findPhotosByTags(Tag tags);
	
	public List<Photo> findPhotosByWidth(Integer width, Boolean greaterThanWidth);

	public List<Photo> findPhotosByHeight(Integer height, Boolean greaterThanHeight);
	
}
